package com.base.service.impl;

import com.base.mapper.voipmapper.CallbackRedirectTableMapper;
import com.base.po.voip.CallbackRedirectTable;
import com.base.po.voip.CallbackRedirectTableExample;
import com.base.service.CallbackRedirectTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("CallbackRedirectTableService")
public class CallbackRedirectTableServiceImpl implements CallbackRedirectTableService {
    @Autowired
    CallbackRedirectTableMapper callbackRedirectTableMapper;

    @Override
    public int countByExample(CallbackRedirectTableExample example) {
        return callbackRedirectTableMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CallbackRedirectTableExample example) {
        return callbackRedirectTableMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return callbackRedirectTableMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(CallbackRedirectTable record) {
        return callbackRedirectTableMapper.insert(record);
    }

    @Override
    public int insertSelective(CallbackRedirectTable record) {
        return callbackRedirectTableMapper.insertSelective(record);
    }

    @Override
    public List<CallbackRedirectTable> selectByExample(CallbackRedirectTableExample example) {
        return callbackRedirectTableMapper.selectByExample(example);
    }

    @Override
    public CallbackRedirectTable selectByPrimaryKey(Integer id) {
        return callbackRedirectTableMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(CallbackRedirectTable record, CallbackRedirectTableExample example) {
        return callbackRedirectTableMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(CallbackRedirectTable record, CallbackRedirectTableExample example) {
        return callbackRedirectTableMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(CallbackRedirectTable record) {
        return callbackRedirectTableMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CallbackRedirectTable record) {
        return callbackRedirectTableMapper.updateByPrimaryKey(record);
    }

    @Override
    public CallbackRedirectTable selectByUserId(String agentid) {
        return callbackRedirectTableMapper.selectByUserId( agentid);
    }
}
